package com.boomsecret.pattern.decorator;

/**
 * Created by wangjinliang on 2018/1/26.
 */
public class DecoratorPatternDemo {
    public static void main(String[] args) {
        DecoratorCoffee decoratorCoffee = new SugarCoffee(new DecoratorCoffee(new SimpleCoffee()));
        System.out.println("NAME:" + decoratorCoffee.getName() + "  PRICE:" + decoratorCoffee.getPrice());
    }
}
